package com.chang.bootplus.service;

import com.chang.bootplus.base.utils.ApiResponse;
import com.chang.bootplus.entity.School;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chang.bootplus.po.*;
import com.chang.bootplus.vo.*;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chang
 * @since 2022-01-23
 */
public interface SchoolService extends IService<School> {

    ApiResponse<Void> register(SchoolPO po);

    ApiResponse<SchoolMessageVO> messageDisplay(SchoolNeedPO po);

    ApiResponse<SchoolTestTimeVO> testTimeDisplay(SchoolNamePO po);

    ApiResponse<SchoolGradeVO> testGradeDisPlay(SchoolNamePO po);

    ApiResponse<SchoolClassVO> testClassDisplay(SchoolNamePO po);

    ApiResponse<SchoolBackMessageVO> schoolManage(SchoolBackNamePO po);

    ApiResponse<CountCalVO> countCal();

    ApiResponse<WorkbenchDetailsVO> workbenchDetail(SchoolNamePO po);

    String getUserAuthorityInfo(Long userId);

    void clearUserAuthorityInfo(String username);

    void clearUserAuthorityInfoByRoleId(Long roleId);

    void clearUserAuthorityInfoByMenuId(Long menuId);
}
